package myLinkList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Text {
    public static void main(String[] args) {
         Mylink mylink =new Mylink();
         mylink.addLast(1);
         mylink.addLast(2);
         mylink.addLast(3);
         mylink.addLast(4);
         mylink.addLast(5);
         mylink.display();
        System.out.println(mylink.contains(6));
        //mylink.addFirst(10);
        mylink.addIndex(0,10);
        mylink.addIndex(mylink.size(), 20);
        mylink.addIndex(4,99);
        mylink.display();
        mylink.addFirst(10);
        mylink.addIndex(2,1);
        mylink.addLast(20);
        mylink.display();
        mylink.remove(99);
        mylink.addLast(10);
        mylink.addLast(33);
        mylink.addFirst(11);
        mylink.display();
        mylink.removeAllKey(11);
        mylink.display();
        mylink.clear();
        mylink.display();
        mylink.addFirst(1);
        mylink.display();
        mylink.remove(1);
        mylink.display();
    }
}
